<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="ServiceStorage,com.netflix.webapis.ServiceStorage,accessToken,applicationName,authorizationURL,consumer,key,loginURL,secret,token,tokenSecret,userId,getInstance" name="keywords">
<title>com.netflix.webapis.ServiceStorage</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ServiceStorage - Netflix Flex API Library';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Netflix Flex API Library</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/netflix/webapis/ServiceStorage.html&amp;com/netflix/webapis/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ServiceStorage</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ServiceStorage"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.netflix.webapis</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ServiceStorage</td>
</tr>
</table>
<p></p>
  Centralized Storage unit for the api. Rather than having to keep adding 
  the same variables to each call, or have to pass them into each instance, 
  the <code>ServiceStorage</code> unit holds the variables in one central place 
  that is accessable via a Singleton object to each instance.
  
  <p>Not intended to be accessed directly, but it is possible dependent on 
  your needs.</p>
  
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#accessToken">accessToken</a> : OAuthToken<div class="summaryTableDescription">
   OAuth Token created when the token and tokenSecret are returned.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#applicationName">applicationName</a> : String<div class="summaryTableDescription">
   Application Name returned from the <code>AuthenticationService.requestToken()</code> call.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#authorizationURL">authorizationURL</a> : String<div class="summaryTableDescription">
   Authentication URL returned from the <code>AuthenticationService.requestToken()</code> call.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#consumer">consumer</a> : OAuthConsumer<div class="summaryTableDescription">
   OAuth Consumer created when the developer key and secret are entered into the authorization service.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#key">key</a> : String<div class="summaryTableDescription">
   Consumer Key.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#loginURL">loginURL</a> : String<div class="summaryTableDescription">
   Login URL returned from the <code>AuthenticationService.requestToken()</code> call.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#secret">secret</a> : String<div class="summaryTableDescription">
   Consumer Secret.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#token">token</a> : String<div class="summaryTableDescription">
   Token returned from the <code>AccessTokenService.getAccessToken()</code> and/or <code>AuthenticationService.requestToken()</code>.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tokenSecret">tokenSecret</a> : String<div class="summaryTableDescription">
   Token Secret returned from the <code>AccessTokenService.getAccessToken()</code> and/or <code>AuthenticationService.requestToken()</code>.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#userId">userId</a> : String<div class="summaryTableDescription">
   User id returned from the AccessToken Service.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ServiceStorage()">ServiceStorage</a>(enforcer:SingletonEnforcer)</div>
<div class="summaryTableDescription">
   Singleton Enforced Constructor.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getInstance()">getInstance</a>():<a href="../webapis/ServiceStorage.html">ServiceStorage</a>
</div>
<div class="summaryTableDescription">[static]
   Constructor Accessor.</div>
</td><td class="summaryTableOwnerCol">ServiceStorage</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="accessToken"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">accessToken</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var accessToken:OAuthToken</code><p>
   OAuth Token created when the token and tokenSecret are returned. 
   </p></div>
<a name="applicationName"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">applicationName</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var applicationName:String</code><p>
   Application Name returned from the <code>AuthenticationService.requestToken()</code> call.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="authenticate/AuthenticationService.html#requestToken()" target="">com.netflix.webapis.authenticate.AuthenticationService.requestToken()</a>
</div>
</div>
<a name="authorizationURL"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">authorizationURL</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var authorizationURL:String</code><p>
   Authentication URL returned from the <code>AuthenticationService.requestToken()</code> call. 
   This is what is used to authorize your application to a user for user information access.
   
   </p><p>To have the user authorize your app to access their account you need to invoke the 
   <code>AuthenticationService.getAuthorization()</code> function. This will open up a new 
   window where they will authorize your app. This one needs to be done once or until the
   user removes your app from the authorized list.</p>
   
   <p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="authenticate/AuthenticationService.html#requestToken()" target="">com.netflix.webapis.authenticate.AuthenticationService.requestToken()</a>
<br>
<a href="authenticate/AuthenticationService.html#getAuthorization()" target="">com.netflix.webapis.authenticate.AuthenticationService.getAuthorization()</a>
</div>
</div>
<a name="consumer"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">consumer</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var consumer:OAuthConsumer</code><p>
   OAuth Consumer created when the developer key and secret are entered into the authorization service.
   </p></div>
<a name="key"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">key</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var key:String</code><p>
   Consumer Key. Get this variable from Netflix when you sign up for a developer account.
   </p></div>
<a name="loginURL"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">loginURL</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var loginURL:String</code><p>
   Login URL returned from the <code>AuthenticationService.requestToken()</code> call.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="authenticate/AuthenticationService.html#requestToken()" target="">com.netflix.webapis.authenticate.AuthenticationService.requestToken()</a>
</div>
</div>
<a name="secret"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">secret</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var secret:String</code><p>
   Consumer Secret. Get this variable from Netflix when you sign up for a developer account.
   </p></div>
<a name="token"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">token</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var token:String</code><p>
   Token returned from the <code>AccessTokenService.getAccessToken()</code> and/or <code>AuthenticationService.requestToken()</code>.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="authenticate/AuthenticationService.html#requestToken()" target="">com.netflix.webapis.authenticate.AuthenticationService.requestToken()</a>
<br>
<a href="authenticate/AccessTokenService.html#getAccessToken()" target="">com.netflix.webapis.authenticate.AccessTokenService.getAccessToken()</a>
</div>
</div>
<a name="tokenSecret"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tokenSecret</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var tokenSecret:String</code><p>
   Token Secret returned from the <code>AccessTokenService.getAccessToken()</code> and/or <code>AuthenticationService.requestToken()</code>.
   
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="authenticate/AuthenticationService.html#requestToken()" target="">com.netflix.webapis.authenticate.AuthenticationService.requestToken()</a>
<br>
<a href="authenticate/AccessTokenService.html#getAccessToken()" target="">com.netflix.webapis.authenticate.AccessTokenService.getAccessToken()</a>
</div>
</div>
<a name="userId"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">userId</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var userId:String</code><p>
   User id returned from the AccessToken Service. 
   </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ServiceStorage()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ServiceStorage</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ServiceStorage(enforcer:SingletonEnforcer)</code><p>
   Singleton Enforced Constructor. 
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">enforcer</span>:SingletonEnforcer</code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="getInstance()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getInstance</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getInstance():<a href="../webapis/ServiceStorage.html">ServiceStorage</a></code><p>
   Constructor Accessor. 
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../webapis/ServiceStorage.html">ServiceStorage</a></code> &mdash; 
                        instance of the class.
   
   
                        
                     </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">Copyright (c) 2009 Netflix-Flex_API Contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</center>
</div>
</body>
</html>
<!--Copyright (c) 2009 Netflix-Flex_API Contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.-->
